package com.aaa.demo111;

/**
 * @author 荆豪峰
 * @version 1.0
 */
public class Test11103 {
    public static void main(String[] args) throws InterruptedException {
        DemoJoin demoJoin = new DemoJoin();
        demoJoin.start();
       demoJoin.join();
        for (int i = 0; i < 20;i++) {
            System.out.println(Thread.currentThread().getName() + "==="+i);
        }
    }
}
class DemoJoin extends Thread{
    @Override
    public void run() {
        for (int i = 0; i < 20;i++) {
            System.out.println(Thread.currentThread().getName() + "==="+i);
}
    }
}